﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using FirebirdSql.Data.FirebirdClient;
using SendApplication.DataType;

namespace SendApplication.Helper
{
    class DTTransferQueue : IParseObj
    {
        List<object> IParseObj.excute(FbDataReader dr)
        {
            TransferObj obj = null;
            List<object> result = new List<object>();

            while (dr.Read())
            {
                obj = new TransferObj();
                obj.istransfered = dr.GetValue(0).ToString();
                obj.fileName = dr.GetValue(1).ToString();
                if (obj.istransfered == "no")
                {
                    result.Add(obj);
                }
            }

            return result;
        }
    }
}
